﻿using System.ServiceModel.Syndication;

namespace Jacobi.Seesmic.FeedReader.Model
{
    /// <summary>
    /// An extension to the <see cref="SyndicationFeed"/> class to create custom feed items.
    /// </summary>
    public sealed class TimelineFeed : SyndicationFeed
    {
        /// <summary>
        /// Override to produce <see cref="TimelineFeedItem"/> instances.
        /// </summary>
        /// <returns></returns>
        protected override SyndicationItem CreateItem()
        {
            var item = new TimelineFeedItem();

            item.SourceFeed = this;

            return item;
        }
    }
}